import Service from './index'

// 设置vuex userInfo字段
export function setUserInfo(params) {
    return Service({
        url: '/api/Auth/GetUserInfoByUserName',
        method: 'get',
        params
    })
}

// ex
export function refreshToken(data) {
    return Service({
        url: '/webapi/auth/refresh-token',
        method: 'post',
        data
    },{ discretion: true })
}

// 获取当前用户功能权限-仅登录调用-字段优化
export function getFuncAuthorityBySelfLogin() {
    return Service({
        url: '/api/authoritycenter/v1/Users/GetFunAuthByUserId',
        method: 'get'
    })
}